﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="dangky.aspx.cs" Inherits="dangky" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="css/ChiTietSanPham.css" rel="stylesheet" type="text/css"  />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
<img height="40" src="image/lbdktvien.gif" width="800px" />
</div>
    <asp:MultiView ID="view" runat="server">
        <asp:View ID="view1" runat="server">
            <table  align="center" border="0" cellpadding="0" cellspacing="0" 
        style="width: 730px">
        <tr style="vertical-align: top">
            <td>
                
                <br />
                <br />
            </td>
        </tr>
                <caption>
                    <br />
                    <tr>
                        <td align="center" style="width: 740px; height: 339px;" valign="top">
                            <table align="center" border="0" cellpadding="0" cellspacing="0" 
                                style="width: 716px">
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Tên đăng nhập:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style15" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtTenDN" runat="server" Height="25px" Width="179px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="txtTenDN" ErrorMessage="(*)" ValidationGroup="signup"></asp:RequiredFieldValidator>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Mật khẩu:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style15" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtMatkhau" runat="server" Height="25px" TextMode="Password" 
                                            Width="179px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                            ControlToValidate="txtMatKhau" ErrorMessage="(*)" ValidationGroup="signup"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Nhập lại mật khẩu:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style16" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtNhaplaipass" runat="server" Height="25px" 
                                            TextMode="Password" Width="179px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                            ControlToValidate="txtNhaplaipass" ErrorMessage="(*)" ValidationGroup="signup"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                            ControlToCompare="txtMatKhau" ControlToValidate="txtNhaplaipass" 
                                            ErrorMessage="Mật khẩu không khớp!" ValidationGroup="signup"></asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Họ và tên:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style15" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtTenUsers" runat="server" Height="25px" Width="179px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                            ControlToValidate="txtTenUsers" ErrorMessage="(*)" ValidationGroup="signup"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Email:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style17" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtemail" runat="server" Height="25px" Width="179px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                            ControlToValidate="txtemail" ErrorMessage="(*)" ValidationGroup="signup"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="Email không đúng!" 
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                            ValidationGroup="signup"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Số điện thoại:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style12" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtSDT" runat="server" Height="25px" Width="179px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style19" height="40" style="font-weight: bold;">
                                        Địa chi:&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td align="left" class="style18" height="40">
                                        &nbsp;
                                        <asp:TextBox ID="txtDiachi" runat="server" Height="25px" Width="179px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" class="style19" height="40">
                                    </td>
                                    <td align="left" class="style19">
                                        <asp:Label ID="lblcheckusername" runat="server" Font-Bold="False" 
                                            ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" height="40" style="height: 25px">
                                        <asp:CheckBox ID="chbagree" runat="server" Font-Size="Medium" ForeColor="Black" 
                                            Text="Bạn đã chắc chắn những điều trên là đúng không?" />
                                        <br />
                                        <asp:Label ID="lblagree" runat="server" ForeColor="Red"></asp:Label>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="2" height="40" style="height: 14px">
                                        <asp:Button ID="btndangky1" runat="server" onclick="btndangky1_Click" 
                                            style="margin-left: 174px" Text="Đăng ký"  BackColor="#A52B2B" ForeColor="White" Width="136px" />
                                        <asp:Button ID="btnhuy" runat="server"  BackColor="#A52B2B" ForeColor="White" onclick="btnhuy_Click" 
                                            style="margin-left: 117px" Text="Hủy" Width="130px" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </caption>
    </table>
        </asp:View>
        <asp:View ID="view2" runat="server">
          <div align="center">
                <h2>
                    Chúc Mừng</h2>
                <br />
                Bạn đã đăng kí thành công! !
                <br />
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="dangnhap.aspx">Đăng Nhập</asp:HyperLink>
            </div>
                    </asp:View>
    </asp:MultiView>
    
</asp:Content>

